package cc.miwuya.property.api;

import cc.miwuya.common.util.Result;
import cc.miwuya.property.domain.Repair;
import org.springframework.web.bind.annotation.*;

/**
 * @Author 迷雾森林
 * @Date 2024-02-27 9:42
 */

public interface HouseApi {
    @GetMapping("/property/house/ownerHouseList/{ownerId}")
    public Result getOwnerHouseList(@PathVariable Long ownerId,@RequestParam("residentialId") Long residentialId);
    @GetMapping("/property/meter/getOwnerMeterList")
    public Result getOwnerMeterList(@RequestParam("ownerId") Long ownerId,@RequestParam("meterType") Integer meterType);
    @GetMapping("/property/repair/list/{userId}")
    public Result getOwnerRepairList(@RequestParam("name") String name,@RequestParam("residentialId") Long residentialId, @PathVariable Long userId);
    @GetMapping("/property/repair/total")
    public Long total();
    @GetMapping("/property/commonLight/getCommonLightTime")
    public Object getCommonLightTime();
    @PostMapping("/property/repair//edit")
    public Result edit(@RequestBody Repair repair);
}
